extends Node2D

func _ready() -> void:
	print("剑颜色测试场景已加载")
	print("按 F1 测试剑颜色改变功能")

func _input(event: InputEvent) -> void:
	if event is InputEventKey and event.pressed:
		if event.keycode == KEY_F1:
			print("触发剑颜色测试")
			print("测试剑颜色改变功能")
			SkillManager._change_sword_color(Color.RED, 3.0)
		elif event.keycode == KEY_F2:
			print("触发攻击提升技能测试")
			# 模拟攻击提升技能
			var damage_bonus = Utils.player.player_stats.get_float("base_damage") * 0.1
			var buff = BuffFactory.create_attack_buff(damage_bonus, 10.0)
			Utils.player.buff_manager.add_buff(buff, Utils.player)
			Utils.show_string_label_c("攻击提升", Utils.player, Color.CYAN)
			
			# 改变剑的颜色
			SkillManager._change_sword_color(Color.ORANGE, 10.0) 
